import { request } from "@/utils/request002";

// 新增排课计划
export const insertCoursePlan = (data: any) => {
  return request({
    url: '/teaching/coursePlan/addCourse',
    method: 'POST',
    data
  })
}

// 编辑排课计划
export const editCoursePlan = (data: any) => {
  return request({
    url: '/teaching/coursePlan/updateClassPlan',
    method: 'POST',
    data
  })
}

// 分页数据查询
export const pageClassPlanList = (params: any) => {
  return request({
    url: '/teaching/coursePlan/pageClassPlanList',
    method: 'GET',
    params
  })
}

// 排课计划删除
export const deleteClassPlan = (data: any) => {
  return request({
    url: '/teaching/coursePlan/deleteClassPlanList',
    method: 'POST',
    data
  })
}